﻿@ModelType SistemaINCA.Models.ViewModels.NewPeriodosModel

<div id="result" style="margin-bottom:15px;">
</div>

<div id="div-loading">
    <img src="@Url.Content("~/Content/loading.gif")" alt="Por favor espere..."/><span> Validando e Intentando crear los nuevos periodos...</span>
</div>

@Using (Ajax.BeginForm("POST_Crear_Periodos_Eva", "AEscolar", New With {.AnioP = ViewBag.AnioP}, New AjaxOptions With {.HttpMethod = "Post", _
                                                                                             .UpdateTargetId = "result", _
                                                                                             .LoadingElementId = "div-loading", _
                                                                                             .InsertionMode = InsertionMode.Replace, _
                                                                                             .OnSuccess = "OnSucess_DLink", _
                                                                                             .OnFailure = "OnError_DLink", _
                                                                                             .OnBegin = "OnBegin_DLink"}, _
                                                                       New With {.class = "jtable-dialog-form"}))
    @Html.ValidationSummary()
    @Html.EditorForModel()
End Using
                                                                                            